package cn.edu.scau.cmi.ema.dao;

import java.util.Set;

import org.springframework.dao.DataAccessException;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;

public interface BrandDAO extends JpaDao<Brand> {

	public Brand findBrandById(Integer id) throws DataAccessException;

	public Brand findBrandById(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Brand> findBrandByName(String name) throws DataAccessException;

	public Set<Brand> findBrandByName(String name, int startResult, int maxRows) throws DataAccessException;

	public Set<Brand> findBrandByNameContaining(String name_1) throws DataAccessException;

	public Set<Brand> findBrandByNameContaining(String name_1, int startResult, int maxRows) throws DataAccessException;

	public Set<Brand> findBrandByDescription(String description) throws DataAccessException;

	public Set<Brand> findBrandByDescription(String description, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Brand> findBrandByDescriptionContaining(String description_1) throws DataAccessException;

	public Set<Brand> findBrandByDescriptionContaining(String description_1, int startResult, int maxRows)
			throws DataAccessException;

	public Brand findBrandByPrimaryKey(Integer id) throws DataAccessException;

	public Brand findBrandByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Brand> findBrandsByIds(Set<Integer> ids) throws DataAccessException;

	public Set<Brand> findAllBrands() throws DataAccessException;

	public Set<Brand> findAllBrands(int startResult, int maxRows) throws DataAccessException;

	public Set<Brand> findBrandByCompositeProperities(String sql, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Brand> findBrandsByDetachedCriteria(CmiPagination page) throws DataAccessException;

	public Brand findBrandByPhysicalPrimaryKey(String name) throws DataAccessException;

	public Brand findBrandByPhysicalPrimaryKey(String name, int startResult, int maxRows) throws DataAccessException;
}
